import { kochPoints } from '../algorithm/koch.js'
import { _polar } from '../math/index.js'
import { _path2 } from './path2.js'
import { polarPoints } from "../algorithm/polar.js";

export const _koch = (options, props) => {
    let points = polarPoints(options)
    let { depth = 0, skew = 0, amplitude = 1, loop = true } = options

    let ps = kochPoints({ points, depth, skew, amplitude, loop })
    return _path2({
        ...options,
        points: ps,
    }, props)
}

